package org.bookie.mtest;


import static org.testng.Assert.assertTrue;

import java.util.Set;

import org.bookie.mtest.framework.Application;
import org.bookie.mtest.framework.CategoryAdminPage;
import org.bookie.mtest.framework.Page;
import org.testng.annotations.Test;

/**
 * Tests admin category editing
 * 
 * @author zubairov
 *
 */
@Test
public class CategoryOperationsTest {

	public void testCategoryListing() throws Exception {
		Application application = new Application();
		Page page = application.start().login("homer@freebookie.org", "test");
		CategoryAdminPage categoryPage = page.getCategoryAdminPage();
		Set<String> categories = categoryPage.getCategories();
		assertTrue(categories.size() >= 0, "Categories are empty");
	}
	
}
